package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCC_LogisticsChannelMaintItem", catalog="Id")
public class TccLogisticsChannelMaintItem extends BaseEntity<TccLogisticsChannelMaintItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="MethodId", nameJava="methodId", typeDataBase="bigint")
	private Long methodId;
	@YsField(nameDataBase="HeavySn", nameJava="heavySn", typeDataBase="decimal")
	private BigDecimal heavySn;
	@YsField(nameDataBase="HeavyEn", nameJava="heavyEn", typeDataBase="decimal")
	private BigDecimal heavyEn;
	@YsField(nameDataBase="Price", nameJava="price", typeDataBase="decimal")
	private BigDecimal price;
	@YsField(nameDataBase="ChannelMaintType", nameJava="channelMaintType", typeDataBase="tinyint")
	private Integer channelMaintType;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TccLogisticsChannelMaintItem setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getMethodId() {
		return methodId;
	}
	public TccLogisticsChannelMaintItem setMethodId(Long methodId) {
		this.methodId = methodId;
		return this;
	}
	public BigDecimal getHeavySn() {
		return heavySn;
	}
	public TccLogisticsChannelMaintItem setHeavySn(BigDecimal heavySn) {
		this.heavySn = heavySn;
		return this;
	}
	public BigDecimal getHeavyEn() {
		return heavyEn;
	}
	public TccLogisticsChannelMaintItem setHeavyEn(BigDecimal heavyEn) {
		this.heavyEn = heavyEn;
		return this;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public TccLogisticsChannelMaintItem setPrice(BigDecimal price) {
		this.price = price;
		return this;
	}
	public Integer getChannelMaintType() {
		return channelMaintType;
	}
	public TccLogisticsChannelMaintItem setChannelMaintType(Integer channelMaintType) {
		this.channelMaintType = channelMaintType;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TccLogisticsChannelMaintItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TccLogisticsChannelMaintItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TccLogisticsChannelMaintItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TccLogisticsChannelMaintItem tccLogisticsChannelMaintItem(
		Long methodId,
		BigDecimal heavySn,
		BigDecimal heavyEn,
		BigDecimal price,
		Integer channelMaintType,
		Integer status
			) {
		TccLogisticsChannelMaintItem entity = new TccLogisticsChannelMaintItem();
		entity.setMethodId(methodId);
		entity.setHeavySn(heavySn);
		entity.setHeavyEn(heavyEn);
		entity.setPrice(price);
		entity.setChannelMaintType(channelMaintType);
		entity.setStatus(status);
		return entity;
	}
}